﻿namespace JxcLite.Services;

[WebApi, Service]
class ReportService(Context context) : ServiceBase(context), IReportService
{
    public Task<PagingResult<BillDetailInfo>> QueryBillDetailsAsync(PagingCriteria criteria)
    {
        return ReportRepository.QueryBillDetailsAsync(Database, criteria);
    }

    public Task<PagingResult<ProfitInfo>> QueryProfitsAsync(PagingCriteria criteria)
    {
        return ReportRepository.QueryProfitsAsync(Database, criteria);
    }
}